import java.util.Scanner;

public class regtest {

  public static void main(String[] args){
    String str = new String(); 
    Scanner sc = new Scanner(System.in);
 
    while(!str.equalsIgnoreCase("end")){
      str = sc.nextLine();
      str = str.replace("\n", "");
      str = str.replace("\r", "");
      System.out.println("-->" + str.matches("<[A-Za-z0-9!@#$%^&*\\(\\)-=\\+_\\{\\}\\[\\]:\";\',\\.\\?\\s+/]+>"));
    }
  
  }

}
